﻿<%@ page contentType="text/html;charset=UTF-8"%>  
<%@ page import="framework.core.*"%>
<%
	//param:Exception in request,name=e
	Exception e = (Exception)request.getAttribute("e");
	if(e==null) e=(Exception)session.getAttribute("e");
%>

<Html>
<Head>
<Title>System Error Page</Title>
<STYLE>
    .showBlock{display:block }
    .hideBlock{display:none }
</STYLE>

<script language="javascript">
function showDetail()
{
	document.all("exceptionDetail").className = "showBlock";
}
function hideDetail()
{
	document.all("exceptionDetail").className = "hideBlock";
}
</script>

</Head>
<Body bgcolor=#999999>
<Font Face=Arial Color=red>
		<b>系统发生错误！</b></Font>
<hr>


<%
	if(e!=null)
	{
%>
		<Font Face=Arial>
		The name of the exception is: <B><%= e.toString()%></B>.<Br><Br>
		<br>
		<input type=button value="显示错误详细信息" onclick="showDetail();return false;">
		<input type=button value="隐藏错误详细信息" onclick="hideDetail();return false;">
		<div id="exceptionDetail" class=hideBlock>
		<br>
		<table border=2 bgcolor=#ffffff>
			<tr>
				<td><pre><Font Face=Arial><%=Logger.getExceptionTrace(e)%></font></pre></td>
			</tr>
		</table>
		</div>
		<br><br>
		We can't process your request. Please contact our system administration. Thank you. 
<%	
	}
	else
	{
%>
		<center>
		<Font Face=Arial Color=#0000A4>
		<br><br><br><br><b>很抱歉,无法得到错误信息</b>
		</Font>
		</center>
<%	
	}
%>


</Body>
</Html>

<!--/framework_error.jsp-->